package com.asset.dispoal.plaintiffConfiguration.service.converter;

import com.asset.dispoal.plaintiffConfiguration.domain.db.entity.SysPlaintiffConfiguration;
import com.asset.dispoal.plaintiffConfiguration.dto.PlaintiffFileRequest;
import com.asset.dispoal.plaintiffConfiguration.dto.SysPlaintiffConfigurationRequest;
import com.asset.dispoal.plaintiffConfiguration.dto.SysPlaintiffConfigurationResponse;
import com.asset.dispoal.plaintiffFile.domain.db.entity.PlaintiffFile;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/3/21$
 */
@Mapper
public interface PlaintiffConfigurationConverter {

    PlaintiffConfigurationConverter INSTANCE = Mappers.getMapper(PlaintiffConfigurationConverter.class);

    SysPlaintiffConfiguration reqToDo(SysPlaintiffConfigurationRequest request);

    List<SysPlaintiffConfigurationResponse> doToRes(List<SysPlaintiffConfiguration> requestList);

    PlaintiffFile reqToDoFile(PlaintiffFileRequest request);

    PlaintiffFileRequest reqToFileReq(SysPlaintiffConfigurationRequest sysPlaintiffConfigurationRequest);
}
